package com.yunxi.model.insurer;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yunxi.core.web.DateJsonDeserializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 保险公司
 * </p>
 *
 * @author 
 * @since 2019-05-14
 */
@Data
@EqualsAndHashCode(callSuper = false)

@TableName("pms_insurer")
@ApiModel(value="Insurer对象", description="保险公司")
public class Insurer implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "INSURER_ID", type = IdType.UUID)
    private String insurerId;

    @ApiModelProperty(value = "保险公司代码")
    @TableField("INSURER_CODE")
    private String insurerCode;

    @ApiModelProperty(value = "保险公司名称")
    @TableField("INSURER_NAME")
    private String insurerName;

    @ApiModelProperty(value = "保险公司简称")
    @TableField("INSURER_SIMPLE_NAME")
    private String insurerSimpleName;

    @ApiModelProperty(value = "原因")
    @TableField("INFO")
    private String info;

    @ApiModelProperty(value = "创建时间")
    @TableField(value ="CREATE_TIME",fill = FieldFill.INSERT)
    @JsonDeserialize(using = DateJsonDeserializer.class)
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    @TableField(value ="CREATE_BY",fill = FieldFill.INSERT)
    @JsonDeserialize(using = DateJsonDeserializer.class)
    private String createBy;

    @ApiModelProperty(value = "修改时间")
    @TableField(value ="UPDATE_TIME", fill = FieldFill.UPDATE)
    @JsonDeserialize(using = DateJsonDeserializer.class)
    private Date updateTime;

    @ApiModelProperty(value = "修改人")
    @TableField(value ="UPDATE_BY", fill = FieldFill.UPDATE)
    @JsonDeserialize(using = DateJsonDeserializer.class)
    private String updateBy;

    @ApiModelProperty(value = "状态1启用0禁用")
    @TableField("STATUS")
    private Integer status;

    @ApiModelProperty(value = "是否删除")
    @TableField("IS_DEL")
    private Integer isDel;

    @ApiModelProperty(value = "备注")
    @TableField("MEMO")
    private String memo;


}
